﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class System_MasterPage2 : System.Web.UI.MasterPage
{
    public int projectid;
    protected void Page_Load(object sender, EventArgs e)
    {
        //projectid = 1;
       projectid = SysFun.ToInt(Request.QueryString["projectid"]);
       if (!IsPostBack)
       {
           HZ.MBSM.DBUtility.Db DbProject = new HZ.MBSM.DBUtility.Db();
           string strSql = "select ProjectMarker,Title  from Project where ProjectId=" + projectid.ToString();
           System.Data.IDataReader dr = DbProject.DataReader(strSql);
           if (dr.Read())
           {
               labProjectMarker.Text = dr["ProjectMarker"].ToString();
               labTitle.Text = dr["Title"].ToString();

           }
           dr.Close();
           dr.Dispose();
           DbProject.Close();

       }
    }
}
